package org.davidtrevien.com.imput.omi.panels.center;

import org.davidtrevien.utils.controler.Controller;

public class CenterCtrl
	extends Controller<CenterView> {

	public CenterCtrl() {
		initComponent();
	}

	private void initComponent() {
		this.view = new CenterView();
	}
	
	public void hideAll() {
		this.view.planningCtrl.getView().setVisible(false);
		this.view.osCtrl.getView().setVisible(false);
		this.view.holidayCtrl.getView().setVisible(false);
		this.view.imputationCtrl.getView().setVisible(false);
		this.view.paramCtrl.getView().setVisible(false);
	}
	
	public void displayPlanning() {
		hideAll();
		this.view.planningCtrl.getView().setVisible(true);
	}
	
	public void displayOs() {
		hideAll();
		this.view.osCtrl.getView().setVisible(true);
	}
	
	public void displayHoliday() {
		hideAll();
		this.view.holidayCtrl.getView().setVisible(true);
	}
	
	public void displayImputation() {
		hideAll();
		this.view.imputationCtrl.getView().setVisible(true);
	}
	
	public void displayParam() {
		hideAll();
		this.view.paramCtrl.getView().setVisible(true);
	}
}
